package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.EmployeeSource;
import com.iengoo.inductionms.service.EmployeeSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 * 员工来源
 **/
@RestController
@RequestMapping("/employee_source")
public class EmployeeSourceController {
    @Autowired
    private EmployeeSourceService employeeSourceService;
    @GetMapping
    public List<EmployeeSource> getEmployeeSource() {
        List<EmployeeSource> employeeSourceList = employeeSourceService.queryAll();
        return employeeSourceList;
    }
}
